<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <title>博客管理页</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.min.css"
          th:href="@{/lib/editormd/css/editormd.min.css}">
</head>
<body>

<!--导航-->
<nav th:fragment="menu(n)" class="ui inverted semantic segment">
    <div class="ui container">
        <div class="ui inverted secondary menu">
            <h3 class="ui teal inverted header item">管理后台</h3>
            <a href="#" th:href="@{/admin/blogs}" class="item" th:classappend="${n == 1} ? 'active'">
                <i class="home icon"></i>
                博客
            </a>
            <a href="#" th:href="@{/admin/types}" class="item" th:classappend="${n == 2} ? 'active'">
                <i class="lightbulb icon"></i>
                分类
            </a>
            <a href="#" th:href="@{/admin/tags}" class="item" th:classappend="${n == 3} ? 'active'">
                <i class="tags icon"></i>
                标签
            </a>
            <div class="right menu">
                <div class="ui dropdown item">
                    <div class="text">
                        <img src="https://picsum.photos/100/100" alt="" class="ui avatar image">
                        罗小宝
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="#" class="item" th:href="@{/admin/logout}">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</nav>

<!--底部-->
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided grid">
            <div class="three wide column">
                <div class="inverted link list">
                    <img src="../../static/img/wechat.jpg" alt="" class="ui rounded image">
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="" class="item">用户故事(Story)</a>
                    <a href="" class="item">用户故事(Story)</a>
                    <a href="" class="item">用户故事(Story)</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">联系我</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">1944303766@qq.com</a>
                </div>
                <div class="ui inverted link list">
                    <a href="#" class="item">QQ:1944303766</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header">Blog</h4>
                <p>这是我的个人博客、会分享关于编程、写作、思考相关的任何内容，希望可以给来到这儿的人有所帮助...</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p>Copyright© 2020-2021</p>

    </div>
</footer>

</body>

<th:block th:frament="script">
    <script src="../../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.js"></script>
    <script src="../../static/lib/editormd/editormd.min.js" th:src="@{/lib/editormd/editormd.min.js}"></script>
</th:block>

</html>